package com.Darkra1Zzz.dao;

import com.Darkra1Zzz.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author DarkraiZzz
 * @Time 2021/6/28 21:19
 * @Version 1.0
 */
public interface UserDao {
    public int insert(User user);
    public int delete(int id);
    public int update(User user);
    public List<User> findAllUser();
    public List<User> findUserList(@Param("name") String name,@Param("phone") String phone,
                                   @Param("email") String email,@Param("vip") String vip, @Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize);
    public User findUserById(int id);
//    public int countAllUser(String name, Integer id, Integer phone,
//                            String email, String vip);
    public int countAllUser(User user);
}
